#version 300 es
precision mediump float;
in vec2 mcLongLat;
out vec4 fFragColor;
void main() {
   vec3 color;
   if(abs(mcLongLat.y)>75.0){
   	  color = vec3(1.0,1.0,1.0);
   }else{
      int colorNum = int(mcLongLat.x/45.0);
      if(colorNum == 0){
      	color = vec3(1.0,0.0,0.0);
      }else if(colorNum == 1){
      	color = vec3(0.0,1.0,0.0);
      }else if(colorNum == 2){
      	color = vec3(0.0,0.0,1.0);
      }else if(colorNum == 3){
      	color = vec3(1.0,1.0,0.0);
      }else if(colorNum == 4){
      	color = vec3(1.0,0.0,1.0);
      }else if(colorNum == 5){
      	color = vec3(0.0,1.0,1.0);
      }else if(colorNum == 6){
      	color = vec3(0.3,0.4,0.7);
      }else if(colorNum == 7){
      	color = vec3(0.3,0.7,0.2);
      }
   }
   fFragColor = vec4(color,1.0);
}     